package com.zonta.finance.serivce;


import com.baomidou.mybatisplus.extension.service.IService;
import com.zonta.finance.domain.form.CreateVoucherWordConfigForm;
import com.zonta.finance.domain.form.DelVoucherWordConfigForm;
import com.zonta.finance.domain.form.UpdateVoucherWordConfigDefaultFlagForm;
import com.zonta.finance.domain.form.UpdateVoucherWordConfigForm;
import com.zonta.finance.domain.po.VoucherWordConfig;
import com.zonta.finance.domain.vo.GetVoucherWordConfigVo;
import com.zonta.finance.domain.vo.ListVoucherWordConfigVo;

import java.util.List;

/**
 * <p>
 * 凭证字配置 服务类
 * </p>
 *
 * @author zonta
 * @since 2024-07-30
 */
public interface IVoucherWordConfigService extends IService<VoucherWordConfig> {

    /**
     * 添加凭证字
     * @param form
     * @return
     */
    Boolean createByFrom(CreateVoucherWordConfigForm form);

    /**
     * 删除凭证字
     * @param form
     * @return
     */
    Boolean delById(DelVoucherWordConfigForm form);

    /**
     * 修改凭证字
     * @param form
     * @return
     */
    Boolean updateByFrom(UpdateVoucherWordConfigForm form);

    GetVoucherWordConfigVo getGetVoucherWordConfigVoById(Long id);

    /**
     * 查询凭证字列表
     * @return
     */
    List<ListVoucherWordConfigVo> lists();

    /**
     *修改默认凭证
     * @param form
     * @return
     */
    Boolean updateDefaultFlag(UpdateVoucherWordConfigDefaultFlagForm form);
}
